package com.yonyou.ucf.mdf.app.isvdxq.yonyisv.model;

public class EncryptionHolder {
    private String msgSignature;
    private String signature;
    private long timestamp;
    private String nonce;
    private String encrypt;

    public EncryptionHolder(long timestamp, String nonce) {
        this.timestamp = timestamp;
        this.nonce = nonce;
    }

    public String getMsgSignature() {
        return this.msgSignature;
    }

    public String getSignature() {
        return this.signature;
    }

    public long getTimestamp() {
        return this.timestamp;
    }

    public String getNonce() {
        return this.nonce;
    }

    public String getEncrypt() {
        return this.encrypt;
    }

    public void setMsgSignature(final String msgSignature) {
        this.msgSignature = msgSignature;
    }

    public void setSignature(final String signature) {
        this.signature = signature;
    }

    public void setTimestamp(final long timestamp) {
        this.timestamp = timestamp;
    }

    public void setNonce(final String nonce) {
        this.nonce = nonce;
    }

    public void setEncrypt(final String encrypt) {
        this.encrypt = encrypt;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof EncryptionHolder)) {
            return false;
        } else {
            EncryptionHolder other = (EncryptionHolder)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label63: {
                    Object this$msgSignature = this.getMsgSignature();
                    Object other$msgSignature = other.getMsgSignature();
                    if (this$msgSignature == null) {
                        if (other$msgSignature == null) {
                            break label63;
                        }
                    } else if (this$msgSignature.equals(other$msgSignature)) {
                        break label63;
                    }

                    return false;
                }

                Object this$signature = this.getSignature();
                Object other$signature = other.getSignature();
                if (this$signature == null) {
                    if (other$signature != null) {
                        return false;
                    }
                } else if (!this$signature.equals(other$signature)) {
                    return false;
                }

                if (this.getTimestamp() != other.getTimestamp()) {
                    return false;
                } else {
                    Object this$nonce = this.getNonce();
                    Object other$nonce = other.getNonce();
                    if (this$nonce == null) {
                        if (other$nonce != null) {
                            return false;
                        }
                    } else if (!this$nonce.equals(other$nonce)) {
                        return false;
                    }

                    Object this$encrypt = this.getEncrypt();
                    Object other$encrypt = other.getEncrypt();
                    if (this$encrypt == null) {
                        if (other$encrypt != null) {
                            return false;
                        }
                    } else if (!this$encrypt.equals(other$encrypt)) {
                        return false;
                    }

                    return true;
                }
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof EncryptionHolder;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $msgSignature = this.getMsgSignature();
        result = result * 59 + ($msgSignature == null ? 43 : $msgSignature.hashCode());
        Object $signature = this.getSignature();
        result = result * 59 + ($signature == null ? 43 : $signature.hashCode());
        long $timestamp = this.getTimestamp();
        result = result * 59 + (int)($timestamp >>> 32 ^ $timestamp);
        Object $nonce = this.getNonce();
        result = result * 59 + ($nonce == null ? 43 : $nonce.hashCode());
        Object $encrypt = this.getEncrypt();
        result = result * 59 + ($encrypt == null ? 43 : $encrypt.hashCode());
        return result;
    }

    public String toString() {
        return "EncryptionHolder(msgSignature=" + this.getMsgSignature() + ", signature=" + this.getSignature() + ", timestamp=" + this.getTimestamp() + ", nonce=" + this.getNonce() + ", encrypt=" + this.getEncrypt() + ")";
    }

    public EncryptionHolder() {
    }

    public EncryptionHolder(final String msgSignature, final String signature, final long timestamp, final String nonce, final String encrypt) {
        this.msgSignature = msgSignature;
        this.signature = signature;
        this.timestamp = timestamp;
        this.nonce = nonce;
        this.encrypt = encrypt;
    }
}
